package website.dp.simpleFactory;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/2 17:11
 * @version: 1.0
 */
public class Client {
    public static void main(String[] args) {

        // 创建对象
        TankFactory tankFactory = new TankFactory();
        for (int i = 0; i < 5; i++) {
            tankFactory.create(i);
        }

        // 创建对象
        AirPlaneFactory airPlaneFactory = new AirPlaneFactory();
        for (int i = 0; i < 5; i++) {
            airPlaneFactory.create(i);
        }
    }
}
